﻿<?php //Seyret Component v.0.3//
/**
* @package Seyret
* @version 0.3
* @copyright Copyright (C) 2008 Mustafa DINDAR. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Seyret Video Component is a free software.
* See seyrettos.html for license notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


$document = & JFactory::getDocument();



$csslink=JURI :: root()."components/com_seyret/themes/default/style/default.seyret.css";
$document->addStyleSheet($csslink);

// $jslink=JURI :: root()."components/com_seyret/includes/js/mootools-1.2-core.js";
// $document->addScript($jslink);
// $jslink=JURI :: root()."components/com_seyret/includes/js/mootools-1.2-more.js";
// $document->addScript($jslink);


$jslink=JURI :: root()."components/com_seyret/includes/js/jquery-1.3.2.min.js";
$document->addScript($jslink);
$jslink=JURI :: root()."components/com_seyret/includes//tools/markitup/jquery.markitup.pack.js";
$document->addScript($jslink);



$csslink=JURI :: root()."components/com_seyret/includes/tools/markitup/sets/bbcode/style.css";
$document->addStyleSheet($csslink);
$csslink=JURI :: root()."components/com_seyret/includes/tools/markitup/skins/markitup/style.css";
$document->addStyleSheet($csslink);



$session =& JFactory::getSession();
$seyretmessagetype=$session->get('seyret.messagetype');
$seyretmessage=$this->seyretmessage($seyretmessagetype);
$session->clear('seyret.messagetype');

$user =& JFactory::getUser();


$seyretcommentinfo=$session->get('seyret.commentinformation');
if ($seyretcommentinfo!="") {
	$commentinfoserialized = base64_decode($seyretcommentinfo);
	$commarray = explode ("<a></a>", $commentinfoserialized);
	$this->comment->authorname = $commarray[0];
	$this->comment->authoremail = $commarray[1];
	$this->comment->authorwebsite = $commarray[2];
	$this->comment->authorlocation = $commarray[3];
	$this->comment->commenttitle = $commarray[4];
	$this->comment->commentbodyraw = $commarray[5];

	

}

$session->clear('seyret.commentinformation');

?>


<style>

body {
background-color: white;
}
</style>

<script type="text/javascript">
jQuery(document).ready(function()	{

	jQuery.noConflict();
    jQuery('#commentbody').markItUp(mySettings);

    jQuery('#emoticons a').click(function() {
        emoticon = jQuery(this).attr("title");
        jQuery.markItUp( { replaceWith:emoticon } );
    });
});





mySettings = {
	nameSpace:'mycomment',

	previewParserPath:	'index.php?option=com_seyret&amp;view=comments&amp;task=previewcomment&amp;tmpl=component', 
	
	markupSet: [
		{name:'Bold', className:'boldbutton', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'Italic', className:'italicbutton', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'Underline', className:'underlinebutton', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{separator:'---------------' },
		{name:'Picture', className:'picturebutton', key:'P', replaceWith:'[img][![Url]!][/img]'},
		{name:'Link', className:'linkbutton', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
		{separator:'---------------' },
		    
		{	name:'Colors', 
			className:'colors', 
			openWith:'[color=[![Color]!]]', 
			closeWith:'[/color]', 
				dropMenu: [
{name:'AliceBlue ', openWith:'[color=aliceblue ]', closeWith:'[/color]', className:"aliceblue " },
{name:'AntiqueWhite ', openWith:'[color=antiquewhite ]', closeWith:'[/color]', className:"antiquewhite " },
{name:'Aqua ', openWith:'[color=aqua ]', closeWith:'[/color]', className:"aqua " },
{name:'Aquamarine ', openWith:'[color=aquamarine ]', closeWith:'[/color]', className:"aquamarine " },
{name:'Azure ', openWith:'[color=azure ]', closeWith:'[/color]', className:"azure " },
{name:'Beige ', openWith:'[color=beige ]', closeWith:'[/color]', className:"beige " },
{name:'Bisque ', openWith:'[color=bisque ]', closeWith:'[/color]', className:"bisque " },
{name:'Black ', openWith:'[color=black ]', closeWith:'[/color]', className:"black " },
{name:'BlanchedAlmond ', openWith:'[color=blanchedalmond ]', closeWith:'[/color]', className:"blanchedalmond " },
{name:'Blue ', openWith:'[color=blue ]', closeWith:'[/color]', className:"blue " },
{name:'BlueViolet ', openWith:'[color=blueviolet ]', closeWith:'[/color]', className:"blueviolet " },
{name:'Brown ', openWith:'[color=brown ]', closeWith:'[/color]', className:"brown " },
{name:'BurlyWood ', openWith:'[color=burlywood ]', closeWith:'[/color]', className:"burlywood " },
{name:'CadetBlue ', openWith:'[color=cadetblue ]', closeWith:'[/color]', className:"cadetblue " },
{name:'Chartreuse ', openWith:'[color=chartreuse ]', closeWith:'[/color]', className:"chartreuse " },
{name:'Chocolate ', openWith:'[color=chocolate ]', closeWith:'[/color]', className:"chocolate " },
{name:'Coral ', openWith:'[color=coral ]', closeWith:'[/color]', className:"coral " },
{name:'CornflowerBlue ', openWith:'[color=cornflowerblue ]', closeWith:'[/color]', className:"cornflowerblue " },
{name:'Cornsilk ', openWith:'[color=cornsilk ]', closeWith:'[/color]', className:"cornsilk " },
{name:'Crimson ', openWith:'[color=crimson ]', closeWith:'[/color]', className:"crimson " },
{name:'Cyan ', openWith:'[color=cyan ]', closeWith:'[/color]', className:"cyan " },
{name:'DarkBlue ', openWith:'[color=darkblue ]', closeWith:'[/color]', className:"darkblue " },
{name:'DarkCyan ', openWith:'[color=darkcyan ]', closeWith:'[/color]', className:"darkcyan " },
{name:'DarkGoldenRod ', openWith:'[color=darkgoldenrod ]', closeWith:'[/color]', className:"darkgoldenrod " },
{name:'DarkGray ', openWith:'[color=darkgray ]', closeWith:'[/color]', className:"darkgray " },
{name:'DarkGreen ', openWith:'[color=darkgreen ]', closeWith:'[/color]', className:"darkgreen " },
{name:'DarkKhaki ', openWith:'[color=darkkhaki ]', closeWith:'[/color]', className:"darkkhaki " },
{name:'DarkMagenta ', openWith:'[color=darkmagenta ]', closeWith:'[/color]', className:"darkmagenta " },
{name:'DarkOliveGreen ', openWith:'[color=darkolivegreen ]', closeWith:'[/color]', className:"darkolivegreen " },
{name:'Darkorange ', openWith:'[color=darkorange ]', closeWith:'[/color]', className:"darkorange " },
{name:'DarkOrchid ', openWith:'[color=darkorchid ]', closeWith:'[/color]', className:"darkorchid " },
{name:'DarkRed ', openWith:'[color=darkred ]', closeWith:'[/color]', className:"darkred " },
{name:'DarkSalmon ', openWith:'[color=darksalmon ]', closeWith:'[/color]', className:"darksalmon " },
{name:'DarkSeaGreen ', openWith:'[color=darkseagreen ]', closeWith:'[/color]', className:"darkseagreen " },
{name:'DarkSlateBlue ', openWith:'[color=darkslateblue ]', closeWith:'[/color]', className:"darkslateblue " },
{name:'DarkSlateGray ', openWith:'[color=darkslategray ]', closeWith:'[/color]', className:"darkslategray " },
{name:'DarkTurquoise ', openWith:'[color=darkturquoise ]', closeWith:'[/color]', className:"darkturquoise " },
{name:'DarkViolet ', openWith:'[color=darkviolet ]', closeWith:'[/color]', className:"darkviolet " },
{name:'DeepPink ', openWith:'[color=deeppink ]', closeWith:'[/color]', className:"deeppink " },
{name:'DeepSkyBlue ', openWith:'[color=deepskyblue ]', closeWith:'[/color]', className:"deepskyblue " },
{name:'DimGray ', openWith:'[color=dimgray ]', closeWith:'[/color]', className:"dimgray " },
{name:'DodgerBlue ', openWith:'[color=dodgerblue ]', closeWith:'[/color]', className:"dodgerblue " },
{name:'FireBrick ', openWith:'[color=firebrick ]', closeWith:'[/color]', className:"firebrick " },
{name:'FloralWhite ', openWith:'[color=floralwhite ]', closeWith:'[/color]', className:"floralwhite " },
{name:'ForestGreen ', openWith:'[color=forestgreen ]', closeWith:'[/color]', className:"forestgreen " },
{name:'Fuchsia ', openWith:'[color=fuchsia ]', closeWith:'[/color]', className:"fuchsia " },
{name:'Gainsboro ', openWith:'[color=gainsboro ]', closeWith:'[/color]', className:"gainsboro " },
{name:'GhostWhite ', openWith:'[color=ghostwhite ]', closeWith:'[/color]', className:"ghostwhite " },
{name:'Gold ', openWith:'[color=gold ]', closeWith:'[/color]', className:"gold " },
{name:'GoldenRod ', openWith:'[color=goldenrod ]', closeWith:'[/color]', className:"goldenrod " },
{name:'Gray ', openWith:'[color=gray ]', closeWith:'[/color]', className:"gray " },
{name:'Green ', openWith:'[color=green ]', closeWith:'[/color]', className:"green " },
{name:'GreenYellow ', openWith:'[color=greenyellow ]', closeWith:'[/color]', className:"greenyellow " },
{name:'HoneyDew ', openWith:'[color=honeydew ]', closeWith:'[/color]', className:"honeydew " },
{name:'HotPink ', openWith:'[color=hotpink ]', closeWith:'[/color]', className:"hotpink " },
{name:'IndianRed  ', openWith:'[color=indianred  ]', closeWith:'[/color]', className:"indianred  " },
{name:'Indigo  ', openWith:'[color=indigo  ]', closeWith:'[/color]', className:"indigo  " },
{name:'Ivory ', openWith:'[color=ivory ]', closeWith:'[/color]', className:"ivory " },
{name:'Khaki ', openWith:'[color=khaki ]', closeWith:'[/color]', className:"khaki " },
{name:'Lavender ', openWith:'[color=lavender ]', closeWith:'[/color]', className:"lavender " },
{name:'LavenderBlush ', openWith:'[color=lavenderblush ]', closeWith:'[/color]', className:"lavenderblush " },
{name:'LawnGreen ', openWith:'[color=lawngreen ]', closeWith:'[/color]', className:"lawngreen " },
{name:'LemonChiffon ', openWith:'[color=lemonchiffon ]', closeWith:'[/color]', className:"lemonchiffon " },
{name:'LightBlue ', openWith:'[color=lightblue ]', closeWith:'[/color]', className:"lightblue " },
{name:'LightCoral ', openWith:'[color=lightcoral ]', closeWith:'[/color]', className:"lightcoral " },
{name:'LightCyan ', openWith:'[color=lightcyan ]', closeWith:'[/color]', className:"lightcyan " },
{name:'LightGoldenRodYellow ', openWith:'[color=lightgoldenrodyellow ]', closeWith:'[/color]', className:"lightgoldenrodyellow " },
{name:'LightGrey ', openWith:'[color=lightgrey ]', closeWith:'[/color]', className:"lightgrey " },
{name:'LightGreen ', openWith:'[color=lightgreen ]', closeWith:'[/color]', className:"lightgreen " },
{name:'LightPink ', openWith:'[color=lightpink ]', closeWith:'[/color]', className:"lightpink " },
{name:'LightSalmon ', openWith:'[color=lightsalmon ]', closeWith:'[/color]', className:"lightsalmon " },
{name:'LightSeaGreen ', openWith:'[color=lightseagreen ]', closeWith:'[/color]', className:"lightseagreen " },
{name:'LightSkyBlue ', openWith:'[color=lightskyblue ]', closeWith:'[/color]', className:"lightskyblue " },
{name:'LightSlateGray ', openWith:'[color=lightslategray ]', closeWith:'[/color]', className:"lightslategray " },
{name:'LightSteelBlue ', openWith:'[color=lightsteelblue ]', closeWith:'[/color]', className:"lightsteelblue " },
{name:'LightYellow ', openWith:'[color=lightyellow ]', closeWith:'[/color]', className:"lightyellow " },
{name:'Lime ', openWith:'[color=lime ]', closeWith:'[/color]', className:"lime " },
{name:'LimeGreen ', openWith:'[color=limegreen ]', closeWith:'[/color]', className:"limegreen " },
{name:'Linen ', openWith:'[color=linen ]', closeWith:'[/color]', className:"linen " },
{name:'Magenta ', openWith:'[color=magenta ]', closeWith:'[/color]', className:"magenta " },
{name:'Maroon ', openWith:'[color=maroon ]', closeWith:'[/color]', className:"maroon " },
{name:'MediumAquaMarine ', openWith:'[color=mediumaquamarine ]', closeWith:'[/color]', className:"mediumaquamarine " },
{name:'MediumBlue ', openWith:'[color=mediumblue ]', closeWith:'[/color]', className:"mediumblue " },
{name:'MediumOrchid ', openWith:'[color=mediumorchid ]', closeWith:'[/color]', className:"mediumorchid " },
{name:'MediumPurple ', openWith:'[color=mediumpurple ]', closeWith:'[/color]', className:"mediumpurple " },
{name:'MediumSeaGreen ', openWith:'[color=mediumseagreen ]', closeWith:'[/color]', className:"mediumseagreen " },
{name:'MediumSlateBlue ', openWith:'[color=mediumslateblue ]', closeWith:'[/color]', className:"mediumslateblue " },
{name:'MediumSpringGreen ', openWith:'[color=mediumspringgreen ]', closeWith:'[/color]', className:"mediumspringgreen " },
{name:'MediumTurquoise ', openWith:'[color=mediumturquoise ]', closeWith:'[/color]', className:"mediumturquoise " },
{name:'MediumVioletRed ', openWith:'[color=mediumvioletred ]', closeWith:'[/color]', className:"mediumvioletred " },
{name:'MidnightBlue ', openWith:'[color=midnightblue ]', closeWith:'[/color]', className:"midnightblue " },
{name:'MintCream ', openWith:'[color=mintcream ]', closeWith:'[/color]', className:"mintcream " },
{name:'MistyRose ', openWith:'[color=mistyrose ]', closeWith:'[/color]', className:"mistyrose " },
{name:'Moccasin ', openWith:'[color=moccasin ]', closeWith:'[/color]', className:"moccasin " },
{name:'NavajoWhite ', openWith:'[color=navajowhite ]', closeWith:'[/color]', className:"navajowhite " },
{name:'Navy ', openWith:'[color=navy ]', closeWith:'[/color]', className:"navy " },
{name:'OldLace ', openWith:'[color=oldlace ]', closeWith:'[/color]', className:"oldlace " },
{name:'Olive ', openWith:'[color=olive ]', closeWith:'[/color]', className:"olive " },
{name:'OliveDrab ', openWith:'[color=olivedrab ]', closeWith:'[/color]', className:"olivedrab " },
{name:'Orange ', openWith:'[color=orange ]', closeWith:'[/color]', className:"orange " },
{name:'OrangeRed ', openWith:'[color=orangered ]', closeWith:'[/color]', className:"orangered " },
{name:'Orchid ', openWith:'[color=orchid ]', closeWith:'[/color]', className:"orchid " },
{name:'PaleGoldenRod ', openWith:'[color=palegoldenrod ]', closeWith:'[/color]', className:"palegoldenrod " },
{name:'PaleGreen ', openWith:'[color=palegreen ]', closeWith:'[/color]', className:"palegreen " },
{name:'PaleTurquoise ', openWith:'[color=paleturquoise ]', closeWith:'[/color]', className:"paleturquoise " },
{name:'PaleVioletRed ', openWith:'[color=palevioletred ]', closeWith:'[/color]', className:"palevioletred " },
{name:'PapayaWhip ', openWith:'[color=papayawhip ]', closeWith:'[/color]', className:"papayawhip " },
{name:'PeachPuff ', openWith:'[color=peachpuff ]', closeWith:'[/color]', className:"peachpuff " },
{name:'Peru ', openWith:'[color=peru ]', closeWith:'[/color]', className:"peru " },
{name:'Pink ', openWith:'[color=pink ]', closeWith:'[/color]', className:"pink " },
{name:'Plum ', openWith:'[color=plum ]', closeWith:'[/color]', className:"plum " },
{name:'PowderBlue ', openWith:'[color=powderblue ]', closeWith:'[/color]', className:"powderblue " },
{name:'Purple ', openWith:'[color=purple ]', closeWith:'[/color]', className:"purple " },
{name:'Red ', openWith:'[color=red ]', closeWith:'[/color]', className:"red " },
{name:'RosyBrown ', openWith:'[color=rosybrown ]', closeWith:'[/color]', className:"rosybrown " },
{name:'RoyalBlue ', openWith:'[color=royalblue ]', closeWith:'[/color]', className:"royalblue " },
{name:'SaddleBrown ', openWith:'[color=saddlebrown ]', closeWith:'[/color]', className:"saddlebrown " },
{name:'Salmon ', openWith:'[color=salmon ]', closeWith:'[/color]', className:"salmon " },
{name:'SandyBrown ', openWith:'[color=sandybrown ]', closeWith:'[/color]', className:"sandybrown " },
{name:'SeaGreen ', openWith:'[color=seagreen ]', closeWith:'[/color]', className:"seagreen " },
{name:'SeaShell ', openWith:'[color=seashell ]', closeWith:'[/color]', className:"seashell " },
{name:'Sienna ', openWith:'[color=sienna ]', closeWith:'[/color]', className:"sienna " },
{name:'Silver ', openWith:'[color=silver ]', closeWith:'[/color]', className:"silver " },
{name:'SkyBlue ', openWith:'[color=skyblue ]', closeWith:'[/color]', className:"skyblue " },
{name:'SlateBlue ', openWith:'[color=slateblue ]', closeWith:'[/color]', className:"slateblue " },
{name:'SlateGray ', openWith:'[color=slategray ]', closeWith:'[/color]', className:"slategray " },
{name:'Snow ', openWith:'[color=snow ]', closeWith:'[/color]', className:"snow " },
{name:'SpringGreen ', openWith:'[color=springgreen ]', closeWith:'[/color]', className:"springgreen " },
{name:'SteelBlue ', openWith:'[color=steelblue ]', closeWith:'[/color]', className:"steelblue " },
{name:'Tan ', openWith:'[color=tan ]', closeWith:'[/color]', className:"tan " },
{name:'Teal ', openWith:'[color=teal ]', closeWith:'[/color]', className:"teal " },
{name:'Thistle ', openWith:'[color=thistle ]', closeWith:'[/color]', className:"thistle " },
{name:'Tomato ', openWith:'[color=tomato ]', closeWith:'[/color]', className:"tomato " },
{name:'Turquoise ', openWith:'[color=turquoise ]', closeWith:'[/color]', className:"turquoise " },
{name:'Violet ', openWith:'[color=violet ]', closeWith:'[/color]', className:"violet " },
{name:'Wheat ', openWith:'[color=wheat ]', closeWith:'[/color]', className:"wheat " },
{name:'White ', openWith:'[color=white ]', closeWith:'[/color]', className:"white " },
{name:'WhiteSmoke ', openWith:'[color=whitesmoke ]', closeWith:'[/color]', className:"whitesmoke " },
{name:'Yellow ', openWith:'[color=yellow ]', closeWith:'[/color]', className:"yellow " },
{name:'YellowGreen ', openWith:'[color=yellowgreen ]', closeWith:'[/color]', className:"yellowgreen " }
				]
		},

		{name:'Size', className:'fontsbutton', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
		dropMenu :[
			{name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
			{name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
			{name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
		]},
		{separator:'---------------' },
		{name:'Bulleted list', className:'listbullet', openWith:'[list]\n', closeWith:'\n[/list]'},
		{name:'Numeric list', className:'numericlist', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
		{name:'List item', className:'listitem', openWith:'[*] '},
		{separator:'---------------' },
		{name:'Quotes', className:'quotebutton', openWith:'[quote]', closeWith:'[/quote]'},
		{name:'Code', className:'codebutton', openWith:'[code]', closeWith:'[/code]'}, 
		{separator:'---------------' },
		{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
		{name:'Preview', className:"preview", call:'preview' }


	]
}




function validateEmail(elementValue){
	var emailPattern = /^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i ; 
	return emailPattern.test(elementValue); 
} 


function validate_form(thisform)
{
	with (thisform)
	{
		 
		if (jQuery("#authorname").val()=="") {
			jQuery("#authorname").removeClass('seyretinputbox').addClass('redseyretinputbox');
			var returnvalue="false";
		} else {
			jQuery("#authorname").removeClass('redseyretinputbox').addClass('seyretinputbox');
		}
		
		if (jQuery("#commenttitle").val()=="") {
			jQuery("#commenttitle").removeClass('seyretinputbox').addClass('redseyretinputbox');
			var returnvalue="false";
		} else {
			jQuery("#commenttitle").removeClass('redseyretinputbox').addClass('seyretinputbox');
		}
		

		
		if (jQuery("#authoremail").val()=="" || validateEmail(jQuery("#authoremail").val())==false) {
			jQuery("#authoremail").removeClass('seyretinputbox').addClass('redseyretinputbox');
			var returnvalue="false";
		} else {
			jQuery("#authoremail").removeClass('redseyretinputbox').addClass('seyretinputbox');
		}		
		
	}
	
	
	if (returnvalue=="false") {
		return false;
	}
}
</script>


	<div id="seyretmessage" class="<?php echo $seyretmessagetype;?>">
		<?php echo $seyretmessage;?>
	</div>
	
<div><?php echo JText::_('Please write your comment and make sure that you take care of site rules'); ?></div>

<div style="text-align:left; padding:10px;">




	
	<form name="videodetailsform" id="videodetailsform" method="post" action="index.php?option=com_seyret&amp;view=comments&amp;task=submitcomment&amp;tmpl=component" onsubmit="return validate_form(this)" >		

		<div class="seyretaddcommentlabel"><?php echo JText::_('Name');?></div>
		<?php
		if ($user->id > 0 && $this->comment->authorname == "") {
			//if user is editing the comment it should be keep the username.
		?>
		
			<div class="seyretaddcommentinput"><input type="text" name="authorname" id="authorname" class="addcommentinputbox seyretinputbox" value="<?php echo $user->username;?>" readonly="readonly"/></div>	
		
		<?php
			
		} else {
			
		?>
		
			<div class="seyretaddcommentinput"><input type="text" name="authorname" id="authorname" class="addcommentinputbox seyretinputbox" value="<?php echo $this->comment->authorname;?>" /></div>	
		
		<?php		
			
		}
		
		?>
		
		<div class="seyretaddcommentlabel"><?php echo JText::_('Email');?></div>
		
		<?php
		if ($user->id > 0 && $this->comment->authoremail == "") {
			//if user is editing the comment it should be keep the username.
		?>
		
			<div class="seyretaddcommentinput"><input type="text" name="authoremail" id="authoremail" class="addcommentinputbox seyretinputbox" value="<?php echo $user->email;?>" readonly="readonly"/></div>		
		
		<?php
			
		} else {
			
		?>
		
			<div class="seyretaddcommentinput"><input type="text" name="authoremail" id="authoremail" class="addcommentinputbox seyretinputbox" value="<?php echo $this->comment->authoremail;?>" /></div>		
		
		<?php		
			
		}
		
		?>		
		

		<div class="seyretaddcommentlabel"><?php echo JText::_('Website');?></div>
		<div class="seyretaddcommentinput"><input type="text" name="authorwebsite" id="authorwebsite" class="addcommentinputbox seyretinputbox" value="<?php echo $this->comment->authorwebsite;?>" /></div>		

		<div class="seyretaddcommentlabel"><?php echo JText::_('Location');?></div>
		<div class="seyretaddcommentinput"><input type="text" name="authorlocation" id="authorlocation" class="addcommentinputbox seyretinputbox" value="<?php echo $this->comment->authorlocation;?>" /></div>		

		<div class="seyretaddcommentlabel"><?php echo JText::_('Title');?></div>
		<div class="seyretaddcommentinput"><input type="text" name="commenttitle" id="commenttitle" class="addcommentinputbox seyretinputbox" value="<?php echo $this->comment->commenttitle;?>" /></div>	


		<div id="emoticons" style="padding-top:10px; padding-left:6px;">
			<a href="#" onclick="return false;" title=":)"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/smile.png" /></a>
			<a href="#" onclick="return false;" title=":("><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/sad.png" /></a>
			<a href="#" onclick="return false;" title=":p"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/impish.png" /></a>
			<a href="#" onclick="return false;" title=";)"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/wink.png" /></a>
			<a href="#" onclick="return false;" title=":D"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/laugh.png" /></a>
			<a href="#" onclick="return false;" title="::lol::"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/lol.png" /></a>
			<a href="#" onclick="return false;" title=":o"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/surprise.png" /></a>
			<a href="#" onclick="return false;" title="::adore::"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/adore.png" /></a>
			<a href="#" onclick="return false;" title="B-)"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/cool.png" /></a>
			<a href="#" onclick="return false;" title="=D"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/bigsmile.png" /></a>
			<a href="#" onclick="return false;" title="=/"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/angry.png" /></a>
			<a href="#" onclick="return false;" title=":-@"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/furious.png" /></a>
			<a href="#" onclick="return false;" title=":-*"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/kiss.png" /></a>
			<a href="#" onclick="return false;" title="::easy-money::"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/easy-money.png" /></a>
			<a href="#" onclick="return false;" title=":-O"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/shock.png" /></a>
			<a href="#" onclick="return false;" title=":-#"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/stop.png" /></a>
			<a href="#" onclick="return false;" title="::shy::"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/shy.png" /></a>
			<a href="#" onclick="return false;" title="::question::"><img src="components/com_seyret/includes/tools/markitup/sets/bbcode/images/question.png" /></a>
			
			
			
			
			
			
			
			
		</div>
	
		<div style="">
			<textarea id="commentbody"  name="commentbody" rows="18"><?php echo $this->comment->commentbodyraw;?></textarea>
		</div>

<div style="clear:both;"></div>
	<?php

	//--------------------------- CAPTCHA -------------------START
	if ($this->registry->getValue('permission.access.writecommentscaptcha')=="1"){
	//check registry
	?>
		<div style="text-align:center;"><?php echo $this->recaptcha; ?></div>

	<?php
	//--------------------------- CAPTCHA -------------------END
	}

	?>
<div style="clear:both;"></div>
	
		<input type="hidden" name="videoid" value="<?php echo $this->videoid; ?>" />
		<input type="hidden" name="id" value="<?php echo $this->comment->id; ?>" />
		<input type="hidden" name="userid" value="<?php echo $this->comment->userid; ?>" />
		<input type="hidden" name="addeddate" value="<?php echo $this->comment->addeddate; ?>" />
		
		<input type="submit" value="<?php echo JText::_('Submit');?>" id="submit" class="seyretbuttonnarrow" />	
		

	</form>

		 
		<div style="clear:both;"></div>
		
			 

</div>

